<footer id="footer" class="acea-row row-middle" style="z-index: 2" ref="storeMenu" @touchmove.prevent>
    {volist name="menus" id="vo"}
    <?php
        $https = "/^https:[\/]{2}[a-z]+[.]{1}[a-z\d\-]+[.]{1}[a-z\d]*[\/]*[A-Za-z\d]*[\/]*[A-Za-z\d]*/";
        if(preg_match($https,$vo['url'])){
            $pageURL = 'https://';
        }else{
            $pageURL = 'http://';
        }
        if($_SERVER["REQUEST_URI"]=='/'){
           $_SERVER["REQUEST_URI"]='/wap/index/index.html';
         }
         $pageURL.=$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"];
         $page=parse_url($pageURL);
         if(array_key_exists('path',$page)){
            $page=parse_url($pageURL)['path'];
         }else{
           $page='/wap/index/index.html';
         }
         $afferent=parse_url($vo['url']);
          if(array_key_exists('path',$afferent)){
            $afferent=parse_url($vo['url'])['path'];
         }else{
            $afferent='#';
         }
         if(strpos($page,'.html')===false) $page=$page.'.html';
         if(strpos($afferent,'.html')===false) $afferent=$afferent.'.html';
        if($page==$afferent){
            $href = 'javascript:void(0);';
            $checked = true;
        }else{
            $href =$vo['url'];
            $checked = false;
        }
    ?>
    <a class="<?php if($checked){echo ' on ';} ?>" href="{$href}">
        <div class="pictrue"><img src="{if $checked}{$vo.class}{else}{$vo.hove_class}{/if}"></div>
        <div class="name">{$vo['name']}</div>
    </a>
    {/volist}
</footer>
